package com.estate.mapper;

import com.estate.pojo.Bespoke;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface BespokeMapper {
    int deleteByPrimaryKey(Long besId);

    int insert(Bespoke record);

    int insertSelective(Bespoke record);

    Bespoke selectByPrimaryKey(Long besId);

    int updateByPrimaryKeySelective(Bespoke record);

    int updateByPrimaryKey(Bespoke record);
    
    /**
     * 查询预约排号的数据
     * 包括了：预约表、用户表、房间表等等
     * @return
     */
    List<Bespoke> getBespokeAndUser(@Param("projectId")Integer projectId,
    								@Param("keyword")String keyword) throws Exception;
}